<?php
$link = mysqli_connect("localhost","root","root","2113");
$mid=$_POST['mid'];
$sql="DELETE FROM message WHERE id=$mid";
$res=mysqli_query($link,$sql);
// 删除和message关联的replay表的内容
$sql2 = "DELETE FROM relpay WHERE mid=$mid";
mysqli_query($link,$sql2);
$arr=[];
if($res){
    $arr['status'] = 1;
	$arr['info'] = "删除成功";
}else{
	$arr['status'] = 0;
	$arr['info'] = "删除失败";
} 
echo json_encode($arr);

?>